package com.neegix.organization.post.application.assembler;

import com.neegix.organization.post.application.service.command.CreatePostCommand;
import com.neegix.organization.post.application.service.command.UpdatePostCommand;
import com.neegix.organization.post.domain.entity.PostEntity;
import com.neegix.organization.post.infrastructure.repository.dataobject.PostDO;
import com.neegix.organization.post.interfaces.vo.PostVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

 /**
  * This file is auto-generated by nebula-framework-generator.
  * The auto-generation plugin was developed using IntelliJ IDEA Community Edition.
  * Thanks to JetBrains for their outstanding contributions to the developer community.
  * <p>
  * The code generated by this tool is owned by the user of the tool.
  * The tool itself is copyrighted by <a href="https://www.neegix.com">https://www.neegix.com</a>.
  *
  * @author <a href="https://www.neegix.com">https://www.neegix.com</a>
  * @version 1.0.0
  * @since 2024-11-25 11:27:14
  */

@Mapper
public interface PostAssembler {
    PostAssembler INSTANCE = Mappers.getMapper(PostAssembler.class);

    PostEntity covertEntity(CreatePostCommand postCommand);

    PostEntity covertEntity(UpdatePostCommand postCommand);

    PostVO covertVO(PostEntity postEntity);

    List<PostVO> covertVO(List<PostDO> PostDOs);
}